package com.imc.api.templmess.service.http;

import com.alibaba.fastjson.JSONObject;
import com.imc.api.templmess.pojo.TempMall;
import com.imc.api.templmess.pojo.Token;
import com.imc.core.config.feign.IBaseRequest;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
@FeignClient(url = "${notifyProperty.templetUrl}",value = "iwxtemplmall")
public interface IWXTemplmallService extends IBaseRequest {
    @GetMapping("/token?")
    JSONObject getAccessToken(@RequestParam Map<String,Object> params);

    @PostMapping("/message/wxopen/template/uniform_send")
    JSONObject messAgesSend(@RequestBody TempMall tempMall,@RequestParam(name = "access_token") String access_token);
}
